home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Apple Development Tools / ToolServer 3.4.1.sit / ToolServer 3.4.1 / QuitTS < prev    next >
Text File  |  1996-03-06  |  2KB  |  42 lines

  1. #    QuitTS - ToolServer Quit File
  2. #
  3. #    Copyright Apple Computer Inc. 1991, 1995
  4. #    All Rights Reserved.
  5.  
  6. #    ToolServer overwrites the log file each time it runs.  If you wish to
  7. #    save a copy, uncomment the following line.
  8.  
  9. #        rename -y "{ShellDirectory}"ToolServer.Log    "{ShellDirectory}"ToolServer.Log.Save
  10.  
  11. #    Since QuitTS is distributed with MPW, you may want to have other
  12. #    "QuitTS" scripts that will not be overwritten with a new release.
  13. #    Other personalized quit scripts may be named QuitTS•≈ - such as 
  14. #    "QuitTS•John" or "QuitTS•Tom"  (• is option-8), and placed in the
  15. #    preferences folder ({PrefsFolder}).  Alternately, you may
  16. #    place items in the "TS Quit Items" folder, located in the directory
  17. #    containing ToolServer.  These items do not have any special
  18. #    naming convention, and will be executed in alphabetical order.
  19. #    They can also be any type of executable entity, such as scripts,
  20. #    tools, and/or applications.
  21. #   
  22. #    The following executes such files found in either place.
  23.  
  24.             # this method of running custom quit scripts is obsolete, and will be removed
  25.             # in a future version of this script.  Please move your QuitTS• scripts into
  26.             # the new :TS Quit Items: folder.
  27.             For __Quit__i in `(Files -t 'TEXT' -f -s "{ShellDirectory}"QuitTS•≈ || Set Status 0) ≥ dev:null`
  28.                 Execute "{__Quit__i}"
  29.             End
  30.  
  31.             For __Quit__i in `(Files -t 'TEXT' -f -s  "{ShellDirectory}TS Quit Items:" || Set Status 0) ≥ dev:null`
  32.                 Execute "{__Quit__i}"
  33.             End
  34.  
  35.             If "{PrefsFolder}"
  36.                 For __Quit__i in `(Files -t 'TEXT' -f -s "{PrefsFolder}"QuitTS•≈ || Set Status 0) ≥ dev:null`
  37.                     Execute "{__Quit__i}"
  38.                 End
  39.             End
  40.  
  41.             Unset __Quit__i
  42.